<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>页面管理 - 拖拽式建站平台</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
        }
        
        :root {
            --sidebar-width: 240px;
            --header-height: 64px;
            --primary-color: #3498db;
            --secondary-color: #2c3e50;
            --bg-color: #f5f6f7;
            --card-bg: #ffffff;
            --text-primary: #18191c;
            --text-secondary: #61666d;
            --text-muted: #9499a0;
            --border-color: #e3e5e7;
            --success-color: #27ae60;
            --warning-color: #f39c12;
            --danger-color: #e74c3c;
        }
        
        body {
            background-color: var(--bg-color);
            color: var(--text-primary);
            display: flex;
            flex-direction: column;
            height: 100vh;
            overflow: hidden;
        }
        
        /* 顶部导航栏 */
        .header {
            height: var(--header-height);
            background: var(--card-bg);
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
            border-bottom: 1px solid var(--border-color);
            z-index: 100;
        }
        
        .header-left {
            display: flex;
            align-items: center;
        }
        
        .sidebar-toggle {
            margin-right: 16px;
            cursor: pointer;
            color: var(--text-secondary);
            font-size: 18px;
        }
        
        .logo {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-primary);
            display: flex;
            align-items: center;
        }
        
        .logo i {
            margin-right: 10px;
            color: var(--primary-color);
        }
        
        .header-right {
            display: flex;
            align-items: center;
        }
        
        .header-action {
            margin-left: 16px;
            color: var(--text-secondary);
            cursor: pointer;
            position: relative;
        }
        
        .header-action:hover {
            color: var(--primary-color);
        }
        
        .badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: var(--danger-color);
            color: white;
            font-size: 11px;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .user-menu {
            display: flex;
            align-items: center;
            margin-left: 20px;
            cursor: pointer;
        }
        
        .user-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--primary-color);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-left: 12px;
        }
        
        /* 主内容区域 */
        .main-container {
            display: flex;
            flex: 1;
            overflow: hidden;
        }
        
        /* 侧边栏 */
        .sidebar {
            width: var(--sidebar-width);
            background: var(--card-bg);
            border-right: 1px solid var(--border-color);
            overflow-y: auto;
            transition: all 0.3s ease;
        }
        
        .sidebar-menu {
            padding: 16px 0;
        }
        
        .menu-title {
            padding: 10px 20px;
            font-size: 13px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .menu-item {
            display: flex;
            align-items: center;
            padding: 12px 20px;
            color: var(--text-secondary);
            text-decoration: none;
            transition: all 0.3s ease;
            border-left: 3px solid transparent;
        }
        
        .menu-item:hover {
            background: rgba(52, 152, 219, 0.1);
            color: var(--primary-color);
        }
        
        .menu-item.active {
            background: rgba(52, 152, 219, 0.1);
            color: var(--primary-color);
            border-left-color: var(--primary-color);
        }
        
        .menu-item i {
            margin-right: 12px;
            width: 18px;
            text-align: center;
        }
        
        /* 内容区域 */
        .content {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
        }
        
        .page-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
        }
        
        .page-title {
            font-size: 24px;
            font-weight: 600;
        }
        
        .page-actions .btn {
            margin-left: 10px;
        }
        
        /* 网站选择器 */
        .website-selector {
            background: var(--card-bg);
            border-radius: 4px;
            padding: 16px 20px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        }
        
        .selector-label {
            font-size: 14px;
            color: var(--text-secondary);
            margin-right: 12px;
            font-weight: 500;
        }
        
        .website-dropdown {
            flex: 1;
            position: relative;
        }
        
        .dropdown-toggle {
            padding: 10px 16px;
            border: 1px solid var(--border-color);
            border-radius: 4px;
            background: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
        }
        
        .dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 1px solid var(--border-color);
            border-radius: 4px;
            margin-top: 4px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            z-index: 10;
            display: none;
        }
        
        .dropdown-menu.show {
            display: block;
        }
        
        .dropdown-item {
            padding: 10px 16px;
            cursor: pointer;
            transition: background 0.3s ease;
        }
        
        .dropdown-item:hover {
            background: #f5f7fa;
        }
        
        /* 页面管理区域 */
        .pages-container {
            display: flex;
            flex: 1;
            gap: 20px;
        }
        
        /* 页面列表 */
        .pages-list-container {
            flex: 1;
            background: var(--card-bg);
            border-radius: 4px;
            overflow: hidden;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
            display: flex;
            flex-direction: column;
            min-width: 300px;
        }
        
        .list-header {
            padding: 16px 20px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .list-title {
            font-size: 16px;
            font-weight: 500;
        }
        
        .list-actions {
            display: flex;
            gap: 8px;
        }
        
        .pages-items {
            overflow-y: auto;
            flex: 1;
        }
        
        .page-item {
            padding: 16px 20px;
            border-bottom: 1px solid var(--border-color);
            cursor: pointer;
            transition: background 0.3s ease;
            display: flex;
            align-items: center;
        }
        
        .page-item:hover {
            background: rgba(52, 152, 219, 0.05);
        }
        
        .page-item.selected {
            background: rgba(52, 152, 219, 0.1);
            border-right: 3px solid var(--primary-color);
        }
        
        .page-item.dragging {
            opacity: 0.5;
            background: rgba(52, 152, 219, 0.2);
        }
        
        .page-handle {
            margin-right: 12px;
            color: var(--text-muted);
            cursor: grab;
        }
        
        .page-handle:active {
            cursor: grabbing;
        }
        
        .page-info {
            flex: 1;
        }
        
        .page-name {
            font-weight: 500;
            margin-bottom: 6px;
            display: flex;
            align-items: center;
        }
        
        .page-name i {
            margin-right: 8px;
            color: var(--primary-color);
        }
        
        .page-home .page-name i {
            color: var(--warning-color);
        }
        
        .page-meta {
            display: flex;
            align-items: center;
            font-size: 13px;
            color: var(--text-secondary);
            margin-bottom: 8px;
            flex-wrap: wrap;
        }
        
        .page-meta-item {
            display: flex;
            align-items: center;
            margin-right: 16px;
        }
        
        .page-meta-item i {
            margin-right: 4px;
        }
        
        .page-status {
            display: flex;
            align-items: center;
        }
        
        .status-badge {
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 500;
        }
        
        .status-published {
            background: rgba(39, 174, 96, 0.1);
            color: var(--success-color);
        }
        
        .status-draft {
            background: rgba(243, 156, 18, 0.1);
            color: var(--warning-color);
        }
        
        .status-scheduled {
            background: rgba(52, 152, 219, 0.1);
            color: var(--primary-color);
        }
        
        .page-path {
            font-family: monospace;
            font-size: 12px;
            color: var(--text-muted);
            background: #f9fafc;
            padding: 2px 6px;
            border-radius: 3px;
            margin-top: 4px;
        }
        
        /* 页面编辑区域 */
        .page-editor {
            flex: 2;
            background: var(--card-bg);
            border-radius: 4px;
            overflow: hidden;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
            display: flex;
            flex-direction: column;
            min-width: 400px;
        }
        
        .editor-header {
            padding: 20px;
            border-bottom: 1px solid var(--border-color);
        }
        
        .editor-title {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
        }
        
        .editor-name {
            font-size: 20px;
            font-weight: 600;
        }
        
        .editor-actions {
            display: flex;
            gap: 8px;
        }
        
        .editor-tabs {
            display: flex;
            border-bottom: 1px solid var(--border-color);
        }
        
        .editor-tab {
            padding: 12px 20px;
            cursor: pointer;
            border-bottom: 2px solid transparent;
            font-weight: 500;
            color: var(--text-secondary);
        }
        
        .editor-tab.active {
            color: var(--primary-color);
            border-bottom-color: var(--primary-color);
        }
        
        .editor-content {
            padding: 20px;
            flex: 1;
            overflow-y: auto;
        }
        
        .editor-section {
            margin-bottom: 24px;
        }
        
        .section-title {
            font-size: 16px;
            font-weight: 500;
            margin-bottom: 16px;
            padding-bottom: 8px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
        }
        
        .section-title i {
            margin-right: 8px;
            color: var(--primary-color);
        }
        
        .form-group {
            margin-bottom: 16px;
        }
        
        .form-label {
            display: block;
            font-size: 14px;
            color: var(--text-secondary);
            margin-bottom: 6px;
            font-weight: 500;
        }
        
        .form-input {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid var(--border-color);
            border-radius: 4px;
            font-size: 14px;
            transition: all 0.3s ease;
        }
        
        .form-input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
        }
        
        .form-textarea {
            min-height: 100px;
            resize: vertical;
        }
        
        .form-select {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid var(--border-color);
            border-radius: 4px;
            background: white;
            font-size: 14px;
        }
        
        .form-check {
            display: flex;
            align-items: center;
        }
        
        .form-check-input {
            margin-right: 8px;
        }
        
        .form-check-label {
            font-size: 14px;
            color: var(--text-secondary);
        }
        
        .color-picker {
            display: flex;
            align-items: center;
        }
        
        .color-preview {
            width: 30px;
            height: 30px;
            border-radius: 4px;
            margin-right: 10px;
            border: 1px solid var(--border-color);
        }
        
        .color-input {
            flex: 1;
        }
        
        .background-preview {
            height: 100px;
            border-radius: 4px;
            border: 1px solid var(--border-color);
            margin-top: 10px;
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
        }
        
        /* 按钮样式 */
        .btn {
            padding: 8px 16px;
            border: none;
            border-radius: 4px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        
        .btn i {
            margin-right: 6px;
        }
        
        .btn-primary {
            background: var(--primary-color);
            color: white;
        }
        
        .btn-primary:hover {
            background: #2980b9;
        }
        
        .btn-outline {
            background: transparent;
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
        }
        
        .btn-outline:hover {
            background: #f5f7fa;
        }
        
        .btn-success {
            background: var(--success-color);
            color: white;
        }
        
        .btn-success:hover {
            background: #219653;
        }
        
        .btn-danger {
            background: var(--danger-color);
            color: white;
        }
        
        .btn-danger:hover {
            background: #c0392b;
        }
        
        .btn-sm {
            padding: 4px 8px;
            font-size: 13px;
        }
        
        .btn-icon {
            width: 32px;
            height: 32px;
            padding: 0;
            justify-content: center;
        }
        
        .btn-icon i {
            margin-right: 0;
        }
        
        /* 空状态 */
        .empty-state {
            padding: 40px 20px;
            text-align: center;
            color: var(--text-muted);
        }
        
        .empty-state i {
            font-size: 48px;
            margin-bottom: 16px;
            color: #d1d5db;
        }
        
        /* 响应式设计 */
        @media (max-width: 992px) {
            .pages-container {
                flex-direction: column;
            }
            
            .page-editor {
                min-width: auto;
            }
            
            .sidebar {
                position: fixed;
                left: -var(--sidebar-width);
                top: var(--header-height);
                bottom: 0;
                z-index: 90;
            }
            
            .sidebar.open {
                left: 0;
            }
            
            .overlay {
                position: fixed;
                top: var(--header-height);
                left: 0;
                right: 0;
                bottom: 0;
                background: rgba(0, 0, 0, 0.5);
                z-index: 80;
                display: none;
            }
            
            .overlay.open {
                display: block;
            }
        }
        
        @media (max-width: 768px) {
            .website-selector {
                flex-direction: column;
                align-items: stretch;
            }
            
            .selector-label {
                margin-bottom: 8px;
            }
            
            .page-header {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .page-actions {
                margin-top: 16px;
                width: 100%;
                display: flex;
                justify-content: space-between;
            }
            
            .page-actions .btn {
                margin-left: 0;
                flex: 1;
                margin: 0 5px;
            }
            
            .editor-tabs {
                overflow-x: auto;
                white-space: nowrap;
            }
        }
    </style>
</head>
<body>
    <!-- 顶部导航栏 -->
    <div class="header">
        <div class="header-left">
            <div class="sidebar-toggle">
                <i class="fas fa-bars"></i>
            </div>
            <div class="logo">
                <i class="fas fa-puzzle-piece"></i>
                拖拽建站后台
            </div>
        </div>
        
        <div class="header-right">
            <div class="header-action">
                <i class="fas fa-bell"></i>
                <span class="badge">3</span>
            </div>
            
            <div class="header-action">
                <i class="fas fa-envelope"></i>
                <span class="badge">5</span>
            </div>
            
            <div class="user-menu">
                <span>管理员</span>
                <div class="user-avatar">
                    <i class="fas fa-user"></i>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 主内容区域 -->
    <div class="main-container">
        <!-- 侧边栏 -->
        <div class="sidebar">
            <div class="sidebar-menu">
                <div class="menu-title">主导航</div>
                <a href="#" class="menu-item">
                    <i class="fas fa-home"></i>
                    <span>控制台</span>
                </a>
                <a href="#" class="menu-item">
                    <i class="fas fa-paint-brush"></i>
                    <span>网站管理</span>
                </a>
                <a href="#" class="menu-item active">
                    <i class="fas fa-file-alt"></i>
                    <span>页面管理</span>
                </a>
                <a href="#" class="menu-item">
                    <i class="fas fa-th-large"></i>
                    <span>组件库</span>
                </a>
                
                <div class="menu-title">内容管理</div>
                <a href="#" class="menu-item">
                    <i class="fas fa-newspaper"></i>
                    <span>文章管理</span>
                </a>
                <a href="#" class="menu-item">
                    <i class="fas fa-box"></i>
                    <span>产品管理</span>
                </a>
                <a href="#" class="menu-item">
                    <i class="fas fa-images"></i>
                    <span>媒体库</span>
                </a>
                
                <div class="menu-title">用户与权限</div>
                <a href="#" class="menu-item">
                    <i class="fas fa-users"></i>
                    <span>用户管理</span>
                </a>
                <a href="#" class="menu-item">
                    <i class="fas fa-shield-alt"></i>
                    <span>角色权限</span>
                </a>
                <a href="#" class="menu-item">
                    <i class="fas fa-cog"></i>
                    <span>系统设置</span>
                </a>
            </div>
        </div>
        
        <!-- 内容区域 -->
        <div class="content">
            <div class="page-header">
                <h1 class="page-title">页面管理</h1>
                <div class="page-actions">
                    <button class="btn btn-outline">
                        <i class="fas fa-sort"></i> 排序页面
                    </button>
                    <button class="btn btn-primary">
                        <i class="fas fa-plus"></i> 新建页面
                    </button>
                </div>
            </div>
            
            <!-- 网站选择器 -->
            <div class="website-selector">
                <span class="selector-label">当前网站:</span>
                <div class="website-dropdown">
                    <div class="dropdown-toggle">
                        <span>科技公司官网</span>
                        <i class="fas fa-chevron-down"></i>
                    </div>
                    <div class="dropdown-menu">
                        <div class="dropdown-item">科技公司官网</div>
                        <div class="dropdown-item">电子商务平台</div>
                        <div class="dropdown-item">个人技术博客</div>
                        <div class="dropdown-item">企业品牌展示</div>
                    </div>
                </div>
            </div>
            
            <!-- 页面管理区域 -->
            <div class="pages-container">
                <!-- 页面列表 -->
                <div class="pages-list-container">
                    <div class="list-header">
                        <div class="list-title">页面列表</div>
                        <div class="list-actions">
                            <button class="btn btn-icon btn-outline" title="筛选">
                                <i class="fas fa-filter"></i>
                            </button>
                            <button class="btn btn-icon btn-outline" title="搜索">
                                <i class="fas fa-search"></i>
                            </button>
                        </div>
                    </div>
                    
                    <div class="pages-items">
                        <div class="page-item page-home selected">
                            <div class="page-handle">
                                <i class="fas fa-grip-vertical"></i>
                            </div>
                            <div class="page-info">
                                <div class="page-name">
                                    <i class="fas fa-home"></i>
                                    首页
                                </div>
                                <div class="page-meta">
                                    <div class="page-meta-item">
                                        <i class="fas fa-user"></i> 张三
                                    </div>
                                    <div class="page-meta-item">
                                        <i class="fas fa-calendar"></i> 2023-08-15
                                    </div>
                                </div>
                                <div class="page-status">
                                    <span class="status-badge status-published">已发布</span>
                                </div>
                                <div class="page-path">/index</div>
                            </div>
                        </div>
                        
                        <div class="page-item">
                            <div class="page-handle">
                                <i class="fas fa-grip-vertical"></i>
                            </div>
                            <div class="page-info">
                                <div class="page-name">
                                    <i class="fas fa-info-circle"></i>
                                    关于我们
                                </div>
                                <div class="page-meta">
                                    <div class="page-meta-item">
                                        <i class="fas fa-user"></i> 李四
                                    </div>
                                    <div class="page-meta-item">
                                        <i class="fas fa-calendar"></i> 2023-08-20
                                    </div>
                                </div>
                                <div class="page-status">
                                    <span class="status-badge status-published">已发布</span>
                                </div>
                                <div class="page-path">/about</div>
                            </div>
                        </div>
                        
                        <div class="page-item">
                            <div class="page-handle">
                                <i class="fas fa-grip-vertical"></i>
                            </div>
                            <div class="page-info">
                                <div class="page-name">
                                    <i class="fas fa-box"></i>
                                    产品服务
                                </div>
                                <div class="page-meta">
                                    <div class="page-meta-item">
                                        <i class="fas fa-user"></i> 王五
                                    </div>
                                    <div class="page-meta-item">
                                        <i class="fas fa-calendar"></i> 2023-08-25
                                    </div>
                                </div>
                                <div class="page-status">
                                    <span class="status-badge status-draft">草稿</span>
                                </div>
                                <div class="page-path">/products</div>
                            </div>
                        </div>
                        
                        <div class="page-item">
                            <div class="page-handle">
                                <i class="fas fa-grip-vertical"></i>
                            </div>
                            <div class="page-info">
                                <div class="page-name">
                                    <i class="fas fa-envelope"></i>
                                    联系我们
                                </div>
                                <div class="page-meta">
                                    <div class="page-meta-item">
                                        <i class="fas fa-user"></i> 赵六
                                    </div>
                                    <div class="page-meta-item">
                                        <i class="fas fa-calendar"></i> 2023-09-01
                                    </div>
                                </div>
                                <div class="page-status">
                                    <span class="status-badge status-published">已发布</span>
                                </div>
                                <div class="page-path">/contact</div>
                            </div>
                        </div>
                        
                        <div class="page-item">
                            <div class="page-handle">
                                <i class="fas fa-grip-vertical"></i>
                            </div>
                            <div class="page-info">
                                <div class="page-name">
                                    <i class="fas fa-newspaper"></i>
                                    新闻动态
                                </div>
                                <div class="page-meta">
                                    <div class="page-meta-item">
                                        <i class="fas fa-user"></i> 张三
                                    </div>
                                    <div class="page-meta-item">
                                        <i class="fas fa-calendar"></i> 2023-09-05
                                    </div>
                                </div>
                                <div class="page-status">
                                    <span class="status-badge status-scheduled">定时发布</span>
                                </div>
                                <div class="page-path">/news</div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 页面编辑区域 -->
                <div class="page-editor">
                    <div class="editor-header">
                        <div class="editor-title">
                            <div class="editor-name">首页</div>
                            <div class="editor-actions">
                                <button class="btn btn-icon btn-outline" title="预览">
                                    <i class="fas fa-eye"></i>
                                </button>
                                <button class="btn btn-icon btn-outline" title="设置">
                                    <i class="fas fa-cog"></i>
                                </button>
                                <button class="btn btn-icon btn-outline" title="复制">
                                    <i class="fas fa-copy"></i>
                                </button>
                            </div>
                        </div>
                        
                        <div class="editor-tabs">
                            <div class="editor-tab active">页面属性</div>
                            <div class="editor-tab">SEO设置</div>
                            <div class="editor-tab">高级设置</div>
                        </div>
                    </div>
                    
                    <div class="editor-content">
                        <div class="editor-section">
                            <div class="section-title">
                                <i class="fas fa-info-circle"></i>
                                基本信息
                            </div>
                            
                            <div class="form-group">
                                <label class="form-label">页面标题</label>
                                <input type="text" class="form-input" value="首页 - 科技公司官网">
                            </div>
                            
                            <div class="form-group">
                                <label class="form-label">页面副标题</label>
                                <input type="text" class="form-input" value="欢迎来到我们的科技世界">
                            </div>
                            
                            <div class="form-group">
                                <label class="form-label">页面描述</label>
                                <textarea class="form-input form-textarea">科技公司官网首页，展示公司最新产品、服务和创新技术。</textarea>
                            </div>
                            
                            <div class="form-group">
                                <label class="form-label">页面路径</label>
                                <input type="text" class="form-input" value="/index">
                            </div>
                            
                            <div class="form-group">
                                <div class="form-check">
                                    <input type="checkbox" class="form-check-input" id="isHomepage" checked>
                                    <label class="form-check-label" for="isHomepage">设为首页</label>
                                </div>
                            </div>
                        </div>
                        
                        <div class="editor-section">
                            <div class="section-title">
                                <i class="fas fa-paint-brush"></i>
                                页面样式
                            </div>
                            
                            <div class="form-group">
                                <label class="form-label">背景颜色</label>
                                <div class="color-picker">
                                    <div class="color-preview" style="background: #ffffff;"></div>
                                    <input type="text" class="form-input color-input" value="#ffffff">
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label class="form-label">背景图片</label>
                                <input type="file" class="form-input">
                                <div class="background-preview" style="background-image: url('https://via.placeholder.com/800x400')">
                                    背景图片预览
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label class="form-label">布局模板</label>
                                <select class="form-select">
                                    <option>默认模板</option>
                                    <option>全宽布局</option>
                                    <option>侧边栏布局</option>
                                    <option>网格布局</option>
                                </select>
                            </div>
                        </div>
                        
                        <div class="editor-section">
                            <div class="section-title">
                                <i class="fas fa-toggle-on"></i>
                                页面状态
                            </div>
                            
                            <div class="form-group">
                                <label class="form-label">发布状态</label>
                                <select class="form-select">
                                    <option>已发布</option>
                                    <option>草稿</option>
                                    <option>定时发布</option>
                                </select>
                            </div>
                            
                            <div class="form-group">
                                <label class="form-label">发布时间</label>
                                <input type="datetime-local" class="form-input" value="2023-08-15T14:30">
                            </div>
                            
                            <div class="form-group">
                                <div class="form-check">
                                    <input type="checkbox" class="form-check-input" id="showInMenu" checked>
                                    <label class="form-check-label" for="showInMenu">在导航菜单中显示</label>
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <div class="form-check">
                                    <input type="checkbox" class="form-check-input" id="allowComments">
                                    <label class="form-check-label" for="allowComments">允许评论</label>
                                </div>
                            </div>
                        </div>
                        
                        <div class="editor-section">
                            <button class="btn btn-primary">
                                <i class="fas fa-save"></i> 保存更改
                            </button>
                            <button class="btn btn-outline">
                                <i class="fas fa-times"></i> 取消
                            </button>
                            <button class="btn btn-danger" style="float: right;">
                                <i class="fas fa-trash"></i> 删除页面
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 移动端遮罩层 -->
    <div class="overlay"></div>

    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 侧边栏切换
            const sidebarToggle = document.querySelector('.sidebar-toggle');
            const sidebar = document.querySelector('.sidebar');
            const overlay = document.querySelector('.overlay');
            
            sidebarToggle.addEventListener('click', function() {
                sidebar.classList.toggle('open');
                overlay.classList.toggle('open');
            });
            
            overlay.addEventListener('click', function() {
                sidebar.classList.remove('open');
                overlay.classList.remove('open');
            });
            
            // 网站下拉菜单
            const dropdownToggle = document.querySelector('.dropdown-toggle');
            const dropdownMenu = document.querySelector('.dropdown-menu');
            
            dropdownToggle.addEventListener('click', function() {
                dropdownMenu.classList.toggle('show');
            });
            
            // 点击外部关闭下拉菜单
            document.addEventListener('click', function(event) {
                if (!dropdownToggle.contains(event.target) && !dropdownMenu.contains(event.target)) {
                    dropdownMenu.classList.remove('show');
                }
            });
            
            // 页面列表项选择
            const pageItems = document.querySelectorAll('.page-item');
            
            pageItems.forEach(item => {
                item.addEventListener('click', function() {
                    pageItems.forEach(i => i.classList.remove('selected'));
                    this.classList.add('selected');
                    
                    // 这里可以添加加载页面详情的代码
                    // loadPageDetails(this.dataset.pageId);
                });
            });
            
            // 标签页切换
            const editorTabs = document.querySelectorAll('.editor-tab');
            
            editorTabs.forEach(tab => {
                tab.addEventListener('click', function() {
                    editorTabs.forEach(t => t.classList.remove('active'));
                    this.classList.add('active');
                    
                    // 这里可以添加标签页内容切换的代码
                    // switchTab(this.dataset.tab);
                });
            });
            
            // 简单的拖拽排序功能（简化版）
            const pageHandles = document.querySelectorAll('.page-handle');
            
            pageHandles.forEach(handle => {
                handle.addEventListener('mousedown', function() {
                    const pageItem = this.closest('.page-item');
                    pageItem.classList.add('dragging');
                    
                    // 这里可以添加完整的拖拽排序逻辑
                    // 实际应用中会使用更复杂的拖拽库如Sortable.js
                });
                
                handle.addEventListener('mouseup', function() {
                    const pageItem = this.closest('.page-item');
                    pageItem.classList.remove('dragging');
                });
            });
            
            // 模拟数据加载
            function loadPageDetails(pageId) {
                console.log('加载页面详情: ', pageId);
                // 实际应用中这里会发送API请求获取页面详情
            }
            
            function switchTab(tabName) {
                console.log('切换到标签: ', tabName);
                // 实际应用中这里会切换不同的编辑表单
            }
        });
    </script>
</body>
</html>